import React from 'react'
import viewRouterUtils from '@/ui/antd/service/router/utils/viewRouterUtils'
import ViewRouteDto from '@/ui/antd/service/router/types/model/dto/ViewRouteDto'

// 模块
const routes = [
	{
		path: '/sms/application',
		title: '短信应用',
		icon: 'fa-solid fa-comment-sms',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/sms/SmsApplicationList/SmsApplicationList')),
		),
	},
	{
		path: '/sms/application/config',
		title: '短信应用配置',
		icon: 'fa-solid fa-gear',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/sms/SmsApplicationConfigList/SmsApplicationConfigList')),
		),
	},
	{
		path: '/sms/supplier',
		title: '短信供应商',
		icon: 'fa-solid fa-gear',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/sms/SmsSupplierList/SmsSupplierList'))),
	},
	{
		path: '/sms/send-record',
		title: '短信发送记录',
		icon: 'fa-solid fa-envelope',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/sms/SmsSendRecordList/SmsSendRecordList')),
		),
	},
] as ViewRouteDto[]

export default routes
